<?php
	require_once("Element.php");

	class EntryList extends Element{
		
		public function __construct($class){
			$this->class = $class;
		}
		
		public function getCode(){
			$this->code = "<div>".$this->code."</div>";
			return $this->code;
		}
		
		public function setClass($class){
			$this->class = $class;
		}
		
		public function getClass(){
			return $this->class;
		}
		
		public function openEntry(){
			$this->code = $this->code."<table class='".$this->class."'>";
		}
		
		public function addLinkTitle($url, $text){
			$this->code = $this->code."<tr><a href='".$url."'>".$text."</a></tr>";
		}
		
		public function addTitle($title){
			$this->code = $this->code."<tr><div class='simpleTitle'>".$title."</div></tr>";
		}
		
		public function addEntry($label, $text){
			$this->code = $this->code."<tr><td style='width:120px'><b>".$label."</b></td><td>".$text."</td></tr>";
		}
		
		public function closeEntry(){
			$this->code = $this->code."</table>";
		}
	}
?>